#ifndef _DRINK_H
#define _DRINK_H

#include <iostream>
#include <string>

class drink
{
private:
    std::string ID;
    std::string name;
    float price;
public:
    drink():ID("0000"), name(""), price(0.0) {std::cout << "无参构造" << std::endl;}    //无参构造
    drink(std::string _ID,std::string _name, float _price):ID(_ID), name(_name), price(_price) {std::cout << "有参构造" << std::endl;}  //重载有参构造
    drink(drink &drk);  //拷贝构造
    ~drink();   //析构
    std::string getID();
    std::string getname();
    void setname(const std::string& _name);
    float getprice();
    void setprice(float _price);

    void show();
    drink operator=(const drink &drk);
};

#endif